package org.example.blogserver.system.mapper;



import org.apache.ibatis.annotations.Mapper;
import org.example.blogpojo.blog.domain.Role;
import org.example.blogpojo.blog.query.RoleQuery;

import java.util.List;
@Mapper
public interface RoleMapper {
    //新增
    void addRole(Role role);
    //修改
    void updateRole(Role role);
    //删除
    void deteleById(Long id);
    //查询单个
    Role findOne(Long id);
    //查询所有
    List<Role> findAll();

    List<Role>queryPage(RoleQuery roleQuery);

    void deleteRoleByIds(Long[] ids);

    void addRoleAndPs(Role role);

    void addRoleAndMs(Role role);

    void delRoleAndPs(Long id);

    void delRoleAndMs(Long id);

    List<Role> rolesPermissionIds(List<Long> rolesIds);

    List<Role> rolesMenuIds(List<Long> rolesIds);

    //List<Long> findPs(Long id);
    //
    //List<Long> findMs(Long id);
}
